package com.yugao.fintech.draper.admin.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.admin.entity.FileInfo;
import com.yugao.fintech.draper.admin.param.FileInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface FileConvert {

	FileConvert INSTANCE = Mappers.getMapper(FileConvert.class);

	FileInfo convert(FileInfoVO fileInfoVO);

	FileInfoVO convert(FileInfo fileInfo);

	List<FileInfoVO> convert(List<FileInfo> fileInfoList);

	Page<FileInfoVO> convert(Page<FileInfo> fileDOList);

}
